// Peter's RPG.cpp : Defines the entry point for the application.
//

#include "stdafx.h"
#include "Peter's RPG.h"
#include "Singleton.h"
#include "MyGameClient.h"

int APIENTRY _tWinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPTSTR    lpCmdLine,
                     int       nCmdShow)
{
	CMyGameClient* pMyGameClient = NULL;
	BOOL bResult = FALSE;

	pMyGameClient = Singleton<CMyGameClient>::GetInstance();
	if (pMyGameClient)
	{
		bResult = pMyGameClient->Init(hInstance);
	}

	if (bResult)
	{
		pMyGameClient->Run();
	}

	pMyGameClient->UnInit();

	return 0;
}
